package com.shop.service.impl;

import com.shop.entity.PmsProduct;
import com.shop.feign.FileService;
import com.shop.mapper.PmsProductMapper;
import com.shop.service.PmsProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;

/**
 * <p>
 * 商品表 服务实现类
 * </p>
 *
 * @author lpx610
 * @since 2023-11-09
 */
@Service
public class PmsProductServiceImpl extends ServiceImpl<PmsProductMapper, PmsProduct> implements PmsProductService {

    @Resource
    private FileService fileService;

    @Override
    public String upload(MultipartFile file) {
        return fileService.uploadDescription(file);
    }
}
